﻿<#include "include/_meta.html">
<title>管理员列表</title>
</head>
<body>
	<table style="border:1px solid #ccc;width:800px;height:400px;margin-left:300px;margin-top:100px;text-align:center;">
		<tr style="border:1px #E1E1E1 solid;">
			<td colspan="1" style="font-size:16px;width:150px;">客户电话：</td>
			<td colspan="3" style="font-size:14px;text-align:left;">${mobile!"0"}</td>
		</tr>
		
		<tr style="border:1px #E1E1E1 solid;">
			<td style="width:150px;font-size:16px;">订单号：</td>
			<td colspan="3" style="width:300px;font-size:14px;"><span id="orderid">${(carOrder.orderid)!"0"}</span></td>
			
		<tr>
		
		<tr style="border:1px #E1E1E1 solid;">
			<td style="width:150px;font-size:16px;">请选择支付方式:</td>
			<td colspan="3" style="height:80px;">
			<select id="payway" style="font-size:16px;height:40px;width:250px;background-color:#E1E1E1;">
			<option value="0">请选择支付方式</option>
			<option value="1">信用卡</option>
			<option value="2">银行卡</option>
			<option value="3">支付宝</option>
			<option value="4">微信</option>
			<option value="5">现金</option>
			</select>
			</td>
		</tr>
		
		
		<tr style="border:1px #E1E1E1 solid;">
			<td colspan="1" style="font-size:16px;width:150px;">实际支付：</td>
			<td colspan="3" style="font-size:14px;">${realtotal!0}</td>
		</tr>
		
		<tr style="border:1px #E1E1E1 solid;">
			<td colspan="4"><input type="button" value="订单生成" id="orderSubmit" style="width:80px;height:40px;background-color:#5A98DE;color:#F4EBF1;font-size:14px;"></td>
		<tr>
	</table>
	
<#include "include/_footer.html">

<script type="text/javascript">
	$('#orderSubmit').click(function(){
		$.ajax({
			type:"post",
			url:"/updatepay",
			data:{"orderid":$('#orderid').text(),
				"payway":$('#payway').val()
			},
			success:function(){
				layer.msg('订单提交成功!',{icon: 5,time:1000});
			}
		});
	});

</script>
</body>
</html>